﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Desp.Master" CodeBehind="WfCadastroOS.aspx.vb" Inherits="PROJETO_ZEUS.WfCadastroOS" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
    .style1
    {
        width: 100%;
        height: 0;
        border: 1px solid #0000FF;
    }
    .style3
    {
        height: 21px;
    }
        .style5
        {
        }
        .style6
        {
            height: 20px;
        }
        .style7
        {
            width: 295px;
        }
        .style8
        {
            width: 133px;
        }
        .style9
        {
            width: 388px;
        }
        .style10
        {
            height: 16px;
        }
        .style11
        {
            width: 100%;
        }
        .style13
        {
            height: 20px;
            width: 308px;
        }
        .style16
        {
            width: 308px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <table class="style1">
    <tr>
        <td class="style3" colspan="4">
            <asp:Label ID="Label1" runat="server" Font-Names="Eras Bold ITC" 
                Font-Size="Medium" Text="LANÇAMENTO DE ORDEM DE SERVIÇO"></asp:Label>
        </td>
    </tr>
    <tr>
        <td class="style8">
            <asp:Label ID="Label2" runat="server" BackColor="White" 
                Font-Names="Times New Roman" Font-Size="Medium" Font-Strikeout="False" 
                Font-Underline="False" Text="Buscar Cliente " BorderColor="Blue" 
                EnableTheming="True" Font-Bold="True" Font-Italic="False" Font-Overline="False" 
                ForeColor="Blue"></asp:Label>
&nbsp;Por:
            </td>
        <td class="style9">
            <asp:DropDownList ID="DropTipoPesq" runat="server" AutoPostBack="True" 
                Font-Bold="True" Font-Italic="True" ForeColor="Black" Height="25px" 
                Width="82px">
                <asp:ListItem>Código</asp:ListItem>
                <asp:ListItem>Nome</asp:ListItem>
                <asp:ListItem>Cpf/Cnpj</asp:ListItem>
                <asp:ListItem>Todos</asp:ListItem>
            </asp:DropDownList>
            <asp:TextBox ID="tbBusca" runat="server" style="margin-left: 25px" 
                Width="156px"></asp:TextBox>
            <asp:Button ID="BuscarCli" runat="server" BorderStyle="Inset" 
                EnableTheming="True" Font-Bold="True" Text="Pesquisar" 
                CausesValidation="False" />
        </td>
        <td class="style7">
            <asp:Label ID="lbmsg" runat="server"></asp:Label>
        </td>
        <td class="style6">
            &nbsp;</td>
    </tr>
    <tr>
        <td class="style5" colspan="4">
            <asp:GridView ID="GvClientes" runat="server" AllowPaging="True" CellPadding="4" 
                ForeColor="#333333" GridLines="None">
                <AlternatingRowStyle BackColor="White" />
                <Columns>
                    <asp:CommandField SelectText="Selecione" ShowSelectButton="True" />
                    <asp:BoundField DataField="cod_cli" HeaderText="Código" 
                        SortExpression="cod_cli" />
                    <asp:BoundField DataField="nome_cli" HeaderText="Nome" 
                        SortExpression="nome_cli" />
                    <asp:BoundField DataField="email_cli" HeaderText="E-mail" 
                        SortExpression="email_cli" />
                    <asp:BoundField DataField="TEL_CLI" HeaderText="Telefone" 
                        SortExpression="TEL_CLI" />
                    <asp:BoundField DataField="END_CLI" HeaderText="Endereço" 
                        SortExpression="END_CLI" />
                    <asp:BoundField DataField="CPF_CNPJ_CLI" HeaderText="Cpf/Cnpj" 
                        SortExpression="CPF_CNPJ_CLI" />
                    <asp:BoundField DataField="NOME_CID" HeaderText="Cidade" 
                        SortExpression="NOME_CID" />
                    <asp:BoundField DataField="NOME_EST" HeaderText="Estado" 
                        SortExpression="NOME_EST" />
                </Columns>
                <EditRowStyle BackColor="#2461BF" />
                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                <RowStyle BackColor="#EFF3FB" />
                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                <SortedAscendingCellStyle BackColor="#F5F7FB" />
                <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                <SortedDescendingCellStyle BackColor="#E9EBEF" />
                <SortedDescendingHeaderStyle BackColor="#4870BE" />
            </asp:GridView>
        </td>
    </tr>
    <tr>
        <td class="style10" colspan="4">
            <asp:Label ID="Label10" runat="server" BackColor="White" 
                Font-Names="Times New Roman" Font-Size="Medium" Font-Strikeout="False" 
                Font-Underline="False" Text="Serviços :" Font-Bold="True" ForeColor="Blue"></asp:Label>
        </td>
    </tr>
    <tr>
        <td class="style10" colspan="4">
            <asp:GridView ID="GvServicos" runat="server" CellPadding="4" 
                Width="264px" ForeColor="#333333" GridLines="None">
                <AlternatingRowStyle BackColor="White" />
                <Columns>
                    <asp:CommandField SelectText="Selecione" ShowSelectButton="True" />
                    <asp:BoundField DataField="CodServ" HeaderText="Código" />
                    <asp:BoundField DataField="DescServ" HeaderText="Descrição" />
                    <asp:BoundField DataField="ValorServ" DataFormatString="{0:C4}" 
                        HeaderText="Valor" />
                </Columns>
                <EditRowStyle BackColor="#2461BF" />
                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                <RowStyle BackColor="#EFF3FB" />
                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                <SortedAscendingCellStyle BackColor="#F5F7FB" />
                <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                <SortedDescendingCellStyle BackColor="#E9EBEF" />
                <SortedDescendingHeaderStyle BackColor="#4870BE" />
            </asp:GridView>
        </td>
    </tr>
    <tr>
        <td class="style5" colspan="4">
            <asp:Panel ID="PanelOs" runat="server" BorderStyle="Groove" 
                GroupingText="Ordem de Serviço">
                <table class="style11">
                    <tr>
                        <td class="style16">
                            <asp:Label ID="Label3" runat="server" BackColor="White" 
                                Font-Names="Times New Roman" Font-Size="Medium" Font-Strikeout="False" 
                                Font-Underline="False" Text="Código Cliente : " Font-Bold="True" 
                                ForeColor="Blue"></asp:Label>
                            <asp:TextBox ID="TbCodigoCli" runat="server" Font-Bold="True" 
                                Font-Italic="True" Width="115px" Enabled="False"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="valCli" runat="server" 
                                ControlToValidate="tbNomeCli" ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
                        </td>
                        <td>
                            <asp:Label ID="Label4" runat="server" BackColor="White" 
                                Font-Names="Times New Roman" Font-Size="Medium" Font-Strikeout="False" 
                                Font-Underline="False" Text="Nome Cliente : " Font-Bold="True" 
                                ForeColor="Blue"></asp:Label>
                            <asp:TextBox ID="tbNomeCli" runat="server" Font-Bold="True" Font-Italic="True" 
                                Width="386px" Enabled="False"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style13">
                            <asp:Label ID="Label5" runat="server" BackColor="White" 
                                Font-Names="Times New Roman" Font-Size="Medium" Font-Strikeout="False" 
                                Font-Underline="False" Text="Data : " Font-Bold="True" ForeColor="Blue"></asp:Label>
                            <asp:TextBox ID="TbData" runat="server" Font-Bold="True" Font-Italic="True" 
                                Width="181px" Enabled="False"></asp:TextBox>
                        </td>
                        <td class="style6">
                            <asp:Label ID="Label6" runat="server" BackColor="White" 
                                Font-Names="Times New Roman" Font-Size="Medium" Font-Strikeout="False" 
                                Font-Underline="False" Text="Obs : " Font-Bold="True" ForeColor="Blue"></asp:Label>
                            <asp:TextBox ID="tbOs" runat="server" Font-Bold="True" Font-Italic="True" 
                                Width="450px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="valobs" runat="server" ControlToValidate="tbOs" 
                                ErrorMessage="*" ForeColor="#FF3300"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="style16">
                            <asp:Label ID="Label7" runat="server" BackColor="White" 
                                Font-Names="Times New Roman" Font-Size="Medium" Font-Strikeout="False" 
                                Font-Underline="False" Text="Status : " Font-Bold="True" ForeColor="Blue"></asp:Label>
                            <asp:DropDownList ID="DropStatus" runat="server" AutoPostBack="True" 
                                Font-Bold="True" Font-Italic="True" ForeColor="Black" Height="27px" 
                                Width="181px">
                            </asp:DropDownList>
                            <asp:RequiredFieldValidator ID="valSta" runat="server" 
                                ControlToValidate="DropStatus" ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
                        </td>
                        <td>
                            <asp:Label ID="Label8" runat="server" BackColor="White" 
                                Font-Names="Times New Roman" Font-Size="Medium" Font-Strikeout="False" 
                                Font-Underline="False" Text="Valor : " Font-Bold="True" ForeColor="Blue"></asp:Label>
                            <asp:TextBox ID="tbvalor" runat="server" Font-Bold="True" Font-Italic="True" 
                                Width="90px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="ValValor" runat="server" 
                                ControlToValidate="tbvalor" ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="style16">
                            <asp:Label ID="Label9" runat="server" BackColor="White" 
                                Font-Names="Times New Roman" Font-Size="Medium" Font-Strikeout="False" 
                                Font-Underline="False" Text="Tipo Pagamento : " Font-Bold="True" 
                                ForeColor="Blue"></asp:Label>
                            <asp:DropDownList ID="DropPag" runat="server" AutoPostBack="True" 
                                Font-Bold="True" Font-Italic="True" ForeColor="Black" Height="21px" 
                                Width="116px">
                                <asp:ListItem>À vista</asp:ListItem>
                                <asp:ListItem>Cartão Crédito</asp:ListItem>
                                <asp:ListItem>Cartão Débito</asp:ListItem>
                                <asp:ListItem>À Receber</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td>
                            &nbsp;</td>
                    </tr>
                </table>
                <asp:Button ID="GerarOs" runat="server" EnableTheming="True" Font-Bold="True" 
                    Text="Gerar Ordem de Serviço" Width="237px" />
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br /> <br />
                <asp:Label ID="lbcad" runat="server"></asp:Label>
            </asp:Panel>
        </td>
    </tr>
</table>
</asp:Content>
